package com.sgb.kjwl.model.entity.self;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class PermissionMenuEntity implements Serializable {


    /**
     * creator : 1306148009196785664
     * created : 1600344227000
     * display : true
     * project : 1304678163384766464
     * id : 1306564505211375616
     * state : 0
     * sort : 1
     * visit : 0
     * title : 待办
     * list : [{"creator":"1306148009196785664","created":1600344706000,"display":true,"icon":"daibanshixiang","project":"1304678163384766464","sort":1,"title":"待办事项","parentId":"1306564505211375616","url":"qingqiujiekou","mode":"POST","path":"luyou_path","component":"luyou_component","name":"luyou_name","id":"1306566510466174976","state":0,"visit":0},{"creator":"1306148009196785664","created":1600344743000,"display":true,"project":"1304678163384766464","id":"1306566667073097728","state":0,"sort":2,"visit":0,"title":"我发起","parentId":"1306564505211375616"},{"creator":"1306148009196785664","created":1600344783000,"display":true,"icon":"icon","project":"1304678163384766464","id":"1306566836611059712","state":0,"sort":3,"visit":0,"title":"已审批","parentId":"1306564505211375616"},{"creator":"1306148009196785664","created":1600344807000,"display":true,"icon":"icon","project":"1304678163384766464","id":"1306566934430617600","state":0,"sort":4,"visit":0,"title":"抄送我","parentId":"1306564505211375616"}]
     */
    private String creator;
//    private long created;
    private boolean display;
    private String project;
    private String id;
    private int state;
    private int sort;
    private int visit;
    private String title;
    private String name; //唯一id
    private List<ListEntity> list;
    private boolean isChoose; //非服务器字段

    public boolean isChoose() {
        return isChoose;
    }

    public void setChoose(boolean choose) {
        isChoose = choose;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

//    public void setCreated(long created) {
//        this.created = created;
//    }

    public void setDisplay(boolean display) {
        this.display = display;
    }

    public void setProject(String project) {
        this.project = project;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setState(int state) {
        this.state = state;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public void setVisit(int visit) {
        this.visit = visit;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void setList(List<ListEntity> list) {
        this.list = list;
    }

    public String getCreator() {
        return creator;
    }

//    public long getCreated() {
//        return created;
//    }

    public boolean isDisplay() {
        return display;
    }

    public String getProject() {
        return project;
    }

    public String getId() {
        return id;
    }

    public int getState() {
        return state;
    }

    public int getSort() {
        return sort;
    }

    public int getVisit() {
        return visit;
    }

    public String getTitle() {
        return title;
    }

    public List<ListEntity> getList() {
        return list;
    }

    @Override
    public String toString() {
        return "PermissionMenuEntity{" +
                "creator='" + creator + '\'' +
//                ", created=" + created +
                ", display=" + display +
                ", project='" + project + '\'' +
                ", id='" + id + '\'' +
                ", state=" + state +
                ", sort=" + sort +
                ", visit=" + visit +
                ", title='" + title + '\'' +
                ", name='" + name + '\'' +
                ", list=" + list +
                '}';
    }

    public static class ListEntity implements Serializable{
        /**
         * creator : 1306148009196785664
         * created : 1600344706000
         * display : true
         * icon : daibanshixiang
         * project : 1304678163384766464
         * sort : 1
         * title : 待办事项
         * parentId : 1306564505211375616
         * url : qingqiujiekou
         * mode : POST
         * path : luyou_path
         * component : luyou_component
         * name : luyou_name
         * id : 1306566510466174976
         * state : 0
         * visit : 0
         */
        private String creator;
//        private long created;
        private boolean display;
        private String icon;
        private String project;
        private int sort;
        private String title;
        private String parentId;
        private String url;
        private String mode;
        private String path;
        private String component;
        private String name;
        private String id;
        private int state;

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        private int type=0;//判断添加状态  0 未添加  1  已添加
        private int visit; //0--开放 1--授权 2--认证
        private int count;
        private List<ListEntity> list;

        public List<ListEntity> getList() {
            if (list==null){
                return new ArrayList<ListEntity>();
            }else {
                return list;
            }
        }

        public void setList(List<ListEntity> list) {
            this.list = list;
        }

        public int getCount() {
            return count;
        }

        public void setCount(int count) {
            this.count = count;
        }

        public void setCreator(String creator) {
            this.creator = creator;
        }

//        public void setCreated(long created) {
//            this.created = created;
//        }

        public void setDisplay(boolean display) {
            this.display = display;
        }

        public void setIcon(String icon) {
            this.icon = icon;
        }

        public void setProject(String project) {
            this.project = project;
        }

        public void setSort(int sort) {
            this.sort = sort;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public void setParentId(String parentId) {
            this.parentId = parentId;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public void setMode(String mode) {
            this.mode = mode;
        }

        public void setPath(String path) {
            this.path = path;
        }

        public void setComponent(String component) {
            this.component = component;
        }

        public void setName(String name) {
            this.name = name;
        }

        public void setId(String id) {
            this.id = id;
        }

        public void setState(int state) {
            this.state = state;
        }

        public void setVisit(int visit) {
            this.visit = visit;
        }

        public String getCreator() {
            return creator;
        }

//        public long getCreated() {
//            return created;
//        }

        public boolean isDisplay() {
            return display;
        }

        public String getIcon() {
            return icon;
        }

        public String getProject() {
            return project;
        }

        public int getSort() {
            return sort;
        }

        public String getTitle() {
            return title;
        }

        public String getParentId() {
            return parentId;
        }

        public String getUrl() {
            return url;
        }

        public String getMode() {
            return mode;
        }

        public String getPath() {
            return path;
        }

        public String getComponent() {
            return component;
        }

        public String getName() {
            return name;
        }

        public String getId() {
            return id;
        }

        public int getState() {
            return state;
        }

        public int getVisit() {
            return visit;
        }

        @Override
        public String toString() {
            return "ListEntity{" +
                    "creator='" + creator + '\'' +
//                    ", created=" + created +
                    ", display=" + display +
                    ", icon='" + icon + '\'' +
                    ", project='" + project + '\'' +
                    ", sort=" + sort +
                    ", title='" + title + '\'' +
                    ", parentId='" + parentId + '\'' +
                    ", url='" + url + '\'' +
                    ", mode='" + mode + '\'' +
                    ", path='" + path + '\'' +
                    ", component='" + component + '\'' +
                    ", name='" + name + '\'' +
                    ", id='" + id + '\'' +
                    ", state=" + state +
                    ", visit=" + visit +
                    ", count=" + count +
                    ", list=" + list +
                    '}';
        }
    }
}



